﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="true" CodeBehind="CustomerList.aspx.cs" Inherits="Runda.EShop.SaaS.CustomerManage.CustomerList" StylesheetTheme="Default"%>
<%@ Register Src="~/UserControl/EnterpriseInfo.ascx" TagPrefix="uc" TagName="EnterpriseInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="server">
    <uc:LeftMenu runat="server" ID="ucLeftMenu"  TopMenuCode="Func1000"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
<div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />企业信息</span>
    </div>
        <div class="clear"></div>
   <uc:EnterpriseInfo runat="server" ID="ucEnterpriseInfo" />
        <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
            <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />用户列表</span>
            <span class="r"><a href="javascript:void(0);" onclick="return OnOpenWinCustom('CustomerAdd.aspx?EntID=<%= EntID%>','添加用户',600,400);">添加用户</a></span>
        </div>
        <div class="clear"></div>
        <asp:GridView ID="gvCustomerList" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField HeaderText="登录账号">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkbtnView" runat="server" OnClientClick='<%# "return OnOpenWinCustom(\"CustomerView.aspx?CustomerID="+Eval("CustomerID")+"\",\"客户查看\",900,600)" %>'><%# Eval("CustomerCode") %></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
          <asp:BoundField DataField="CustomerName" HeaderText="姓名" /> 
          <asp:TemplateField HeaderText="操作">
          <ItemTemplate>              
              <asp:LinkButton ID="lnkbtnEdit" runat="server" OnClientClick='<%# "return OnOpenWinCustom(\"CustomerAdd.aspx?CustomerID="+Eval("CustomerID")+"\",\"企业用户修改\",600,400)" %>'>修改</asp:LinkButton>
              <asp:LinkButton ID="lnkbtnChangePwd" runat="server" OnClientClick='<%# "return OnOpenWinCustom(\"ChangePassword.aspx?CustomerID="+Eval("CustomerID")+"\",\"企业用户修改密码\",600,400)" %>'>修改密码</asp:LinkButton>
              <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick='<%# "return OnOpenWinCustom(\"CustomerSetting.aspx?CustomerID="+Eval("CustomerID")+"\",\"设置产品类别\",800,600)" %>'>设置产品类别</asp:LinkButton>
              <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "CustomerProduct.aspx?CustomerID="+Eval("CustomerID")%>' Target="_blank">设置产品</asp:HyperLink>
          </ItemTemplate>
          </asp:TemplateField>
        </Columns>            
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" 
        NumericButtonCount="10" onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>
         
        <asp:Button ID="btnRefersh" runat="server" Text="Button" Style="display: none;" OnClick="btnRefersh_Click" ClientIDMode="Static"/>
</asp:Content>
